#ifndef TRANSSERIES_H
#define TRANSSERIES_H

#include <QVector>
#include <QString>
#include <QColor>
#include "transaction.h"

class TransSeries
{
public:
    typedef QVector<Transaction> TypeTransVector;
    TransSeries(QString Name);
    TransSeries(const TransSeries& Series);
    TransSeries();
    virtual ~TransSeries();

    void addTransaction(const Transaction& transaction);

    const QVector<Transaction>& getSeries() const;

    void setHeigh(int Heigh);
    int getHeigh() const;

    void setColor(const QColor& Color) { color = Color; }
    QColor getColor() const { return color; }
private:    
    QString name;
    int heigh;
    QVector<Transaction> series;
    QColor color;
};

#endif // TRANSSERIES_H
